package com.example.demo.repository;

import java.util.Date;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.example.demo.custom.BaseRepository;
import com.example.demo.entity.SysUser;
import com.example.demo.entity.TargetAndBackMonkeyPeople2;
@Repository
public interface TargetAndBackMonkeyPeopleRepository2 extends BaseRepository<TargetAndBackMonkeyPeople2 ,Integer>{

	List<TargetAndBackMonkeyPeople2> findByUser(SysUser user);

	TargetAndBackMonkeyPeople2 findByDateAndUser(Date date, SysUser myUser);

	TargetAndBackMonkeyPeople2 findByUserId(Integer userId);

	TargetAndBackMonkeyPeople2 findByUserIdAndDate(Integer userId, Date date);


}
